<div class="row">
    <div class="col-md-12">
        <div class="box-widget">
            <table id="list-group" class="table data-tbl-boxy responsive">
                <thead>
                    <tr>
                        <th>
                            <?php echo $this->translate('customer name'); ?>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($this->data as $row): ?>
                    <tr>
                        <td class="pname">
                            <a href="javascript:edit('<?php echo $row->id; ?>')">
                                <?php echo $row->name; ?>
                            </a>
                        </td>
                    </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<script>
function edit(id){
    var form = '<form action="<?php echo $this->url(array('module' => 'admin', 'controller' => 'product-price', 'action' => 'create'), null, true); ?>" method="post" id="edit-user-' + id + '">';
        form += '<input type="hidden" name="customer_id" value="' + id + '" />';
        form += '</form>';
    $("table").append(form);
    $("#edit-user-" + id).submit();
}


$(function() {
    $('.data-tbl-boxy').dataTable({
        "sPaginationType": "bootstrap",
        "iDisplayLength": 25,
        "oLanguage": {
            "sLengthMenu": "<span class='lengthLabel pull-left'><?php echo $this->translate('entries_per_page'); ?>:</span><span class='lenghtMenu pull-left'> _MENU_</span>",
            "sInfo": "<?php echo $this->translate('show start end records of total'); ?>",
            "sSearch": "<?php echo $this->translate('filter'); ?>:",
            "oPaginate": {
                "sFirst": "<?php echo $this->translate('first page'); ?>",
                "sLast": "<?php echo $this->translate('last page'); ?>",
                "sNext": "<?php echo $this->translate('next page'); ?>",
                "sPrevious": "<?php echo $this->translate('previous page'); ?>"
            }
        },
        "sDom": '<"widget-head clearfix"fl>,<"widget-container"<"widget-block"<"widget-content"t>,,<"table-bottom clearfix"<"tbl-pagination pull-left"p><"tbl-data-info pull-right"i>>'
    });
});
</script>